package com.sk.waste.app.models

import org.json.JSONObject
import java.io.Serializable

/**
 *  @time 2025/05/01  11:30
 *  @desc 空间
 */
class SpaceModel : Serializable {
    var id: String = ""//
    var name: String = ""//
    var avatarUrl: String = ""//
    var publishTime: String = ""//
    var publishLocation: String = ""
    var infoContent: String = ""
    var viewCount: String = ""
    var contactInfo: String = ""
    var infoTitle: String = ""
    var infoType: String = ""
    var userPhone: String = ""
    var isVip: String = ""
    val imgList: MutableList<String> = mutableListOf()

    fun getModelInfo(json: JSONObject) {
        id = json.getString("id")
        name = json.getString("name")
        avatarUrl = json.getString("avatarUrl")
        publishTime = json.getString("publishTime")
        publishLocation = json.getString("publishLocation")
        infoContent = json.getString("infoContent")
        viewCount = json.getString("viewCount")
        userPhone = json.getString("userPhone")
        isVip = json.getString("isVip")
        contactInfo = json.getString("contactInfo")
    }

}